import Vue from 'vue'
import Router from 'vue-router'

import up from '@/components/up'
import Index from '@/components/Index'
import Login from  '@/components/Login'
import Register from  '@/components/Register'
import Home from  '@/components/Home'
import RegisterComapny from '@/components/RegisterComapny'
import AdminHome from '@/components/AdminHome'
import RegisterWorkroom from '@/components/RegisterWorkroom'
//import Search from '@/components/Search'
import Info from '@/components/Info'
import UpInf from '@/components/UpInf'
import Massage from '@/components/Massage'
import SendMassage from '@/components/SendMassage'
import Advertisement from '@/components/Advertisement'
import Step from '@/components/Step'
import Cameras from '@/components/Cameras'
import Echart from '@/components/Echart'
import TeamBuild from '@/components/TeamBuild'
import TeamInfo from '@/components/TeamInfo'
import ChildProject from '@/components/ChildProject'
import TeamApply from '@/components/TeamApply'
import TeamMe from '@/components/TeamMe'
import AddProcess from '@/components/AddProcess'
import WorkroomEchart from '@/components/WorkroomEchart'
import AddWorkroomProcess from '@/components/AddWorkroomProcess'
import ProjectUploadd from '@/components/ProjectUploadd'
import ProjectUploaddd from '@/components/ProjectUploaddd'
import BaiduMap from '@/components/BaiduMap'
import Countdown from '@/components/Countdown'
import SignInAtPoint from '@/components/SignInAtPoint'
import WorkerHome from '@/components/WorkerHome'
import QianDao from '@/components/QianDao'
import Diglog from  '@/components/Diglog'
import RecruitNeeds from '@/components/workroom/RecruitNeeds'
import RegisterDeveloperm from '@/components/RegisterDeveloperm'
import Recruit from '@/components/Recruit'
import ApplyJob from '@/components/ApplyJob'
import JobApplyManage from '@/components/JobApplyManage'





import CompanyApplyManage from '@/components/admin/CompanyApplyManage'
import WorkroomApplyManage from '@/components/admin/WorkroomApplyManage'
import OrderManage from '@/components/admin/OrderManage'
import OrderDjManage from '@/components/admin/OrderDjManage'
import Ad from '@/components/admin/Ad'
import Adingg from '@/components/admin/Adingg'
import Weikuan from '@/components/admin/Weikuan'



import AppendFinshWork from '@/components/workroom/AppendFinshWork'
import AppendMember from '@/components/workroom/AppendMember'
import AppendFinshWorkHh from '@/components/workroom/AppendFinshWorkHh'
import AppendMemberHh from '@/components/workroom/AppendMemberHh'
import ProjectInvate from '@/components/workroom/ProjectInvate'
import ApplyingProject from '@/components/workroom/ApplyingProject'
import Projecting from '@/components/workroom/Projecting'
import Projected from '@/components/workroom/Projected'
import Group from '@/components/workroom/Group'
import GroupAppend from '@/components/workroom/GroupAppend'
import GroupBuild from '@/components/workroom/GroupBuild'
import GroupMember from '@/components/workroom/GroupMember'
import ProjectStep from '@/components/workroom/ProjectStep'
import GroupM from '@/components/workroom/GroupM'
import Team from '@/components/workroom/Team'
import TeamMember from '@/components/workroom/TeamMember'
import TeamMemberDemand from '@/components/workroom/TeamMemberDemand'
import TeamApplyManage from '@/components/workroom/TeamApplyManage'
import projectTeamApply from '@/components/workroom/projectTeamApply'
import MyTeam from '@/components/workroom/MyTeam'
import TeamProject from '@/components/workroom/TeamProject'
import WProjectSubmit from '@/components/workroom/WProjectSubmit'
import RecruitMember from '@/components/workroom/RecruitMember'




import ProjectManage from '@/components/company/ProjectManage'
import ProjectManageing from '@/components/company/ProjectManageing'
import ProjectManageed from '@/components/company/ProjectManageed'
import PublishProject  from '@/components/company/PublishProject'
import ApplyManage   from '@/components/company/ApplyManage'
import finshStep   from '@/components/company/finshStep'
import PublishPProject   from '@/components/company/PublishPProject'
import CProjectSubmit  from '@/components/company/CProjectSubmit'

import  Project   from '@/components/searchChildren/Project'
import  Workroom   from '@/components/searchChildren/Workroom'
import ProjectApply   from '@/components/searchChildren/ProjectApply'
import ProjectPApply   from '@/components/searchChildren/ProjectPApply'


const Search = r => require.ensure([], () => r(require('../components/Search')), 'Search');






Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/RecruitNeeds',
      name: 'RecruitNeeds',
      component: RecruitNeeds
    },
    {
      path: '/Echart',
      name: 'Echart',
      component: Echart
    },

    {
      path: '/RegisterDeveloperm',
      name: 'RegisterDeveloperm',
      component: RegisterDeveloperm
    },

    {
      path: '/ApplyJob',
      name: 'ApplyJob',
      component:  ApplyJob
    },

    {
      path: '/Recruit',
      name: 'Recruit',
      component:  Recruit
    },

    {
      path: '/BaiduMap',
      name: 'BaiduMap',
      component:  BaiduMap
    },




    {
      path: '/SignInAtPoint',
      name: 'SignInAtPoint',
      component:  SignInAtPoint
    },

    {
      path: '/Countdown',
      name: 'Countdown',
      component:  Countdown
    },



    {
      path: '/WorkerHome',
      name: 'WorkerHome',
      meta: {
        requireAuth: true // 配置此条，进入页面前判断是否需要登陆
      },
      component:WorkerHome,
      children:[
        {
          path: '/QianDao',
          name: 'QianDao',
          component:QianDao
        },
      ]
    },



    {
      path: '/Cameras',
      name: 'Cameras',
      component: Cameras
    },
    {
      path: '/AddProcess',
      name: ' AddProcess',
      component: AddProcess
    },
    {
      path: '/AddWorkroomProcess',
      name: 'AddWorkroomProcess',
      component: AddWorkroomProcess
    },
    {
      path: '/TeamInfo',
      name: 'TeamInfo',
      component: TeamInfo
    },
    {
      path: '/ChildProject',
      name: 'ChildProject',
      component: ChildProject
    },
    {
      path: '/ProjectUploadd',
      name: 'ProjectUploadd',
      component: ProjectUploadd
    },
    {
      path: '/ProjectUploaddd',
      name: 'ProjectUploaddd',
      component: ProjectUploaddd
    },
    {
      path: '/WorkroomEchart',
      name: ' WorkroomEchart',
      component:  WorkroomEchart
    },

    {
      path: '/projectTeamApply',
      name: 'projectTeamApply',
      component: projectTeamApply
    },



    {
      path: '/TeamApply',
      name: 'TeamApply',
      component:TeamApply
    },
    {
      path: '/TeamMe',
      name: 'TeamMe',
      component:TeamMe
    },
    {
      path: '/GroupBuild',
      component:  GroupBuild,
      name: ' GroupBuild'
    },
    {
      path: '/PublishPProject',
      component:  PublishPProject,
      name: ' PublishPProject'
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index
    },
    {
      path: '/TeamBuild',
      name: 'TeamBuild',
      component: TeamBuild
    },
    {
      path: '/ProjectPApply',
      name: 'ProjectPApply',
      component: ProjectPApply
    },
    {
      path: '/UpInfo',
      name: 'UpInf',
      component: UpInf
    },
    {
      path: '/SendMassage',
      name: 'SendMassage',
      component: SendMassage
    },

    {
      path: '/Advertisement',
      name: ' Advertisement',
      component: Advertisement
    },
    {
      path: '/TeamMemberDemand',
      name: 'TeamMemberDemand',
      component: TeamMemberDemand
    },
    {
      path: '/Project',
      name: 'Project',
      component: Project
    },
    {
      path: '/Workroom',
      name: ' Workroom',
      component:  Workroom
    },

    {
      path: '/Massage',
      name: 'Massage',
      component: Massage
    },
    {
      path: '/Search',
      component: Search,
      name: 'Search'
    },
    {
      path: '/AppendMemberHh',
      name:'AppendMemberHh',
      component:  AppendMemberHh,
    },

    {
      path: '/ProjectApply',
      name: 'ProjectApply',
      component: ProjectApply
    },

    {
      path: '/RegisterWorkroom',
      name: 'RegisterWorkroom',
      component: RegisterWorkroom
    },



    {
      path: '/AdminHome',
      name: 'AdminHome',
      meta: {
        requireAuth: true // 配置此条，进入页面前判断是否需要登陆
      },
      component: AdminHome,

      children: [
        {
          path: '/Ad',
          name: 'Ad',
          component: Ad
        },
        {
          path: '/Weikuan',
          name: ' Weikuan',
          component: Weikuan
        },

        {
          path: '/Adingg',
          name: 'Adingg',
          component: Adingg
        },
        {
          path: '/OrderDjManage',
          name:'OrderDjManage',
          component: OrderDjManage,
        },
        {
          path: '/OrderManage',
          name:'OrderManage',
          component: OrderManage,
        },
        {
          path: '/WorkroomApplyManage',
          name:'WorkroomApplyManage',
          component:  WorkroomApplyManage,
        },
        {
          path: '/CompanyApplyManage',
          name:'CompanyApplyManage',
          component:  CompanyApplyManage,
        }

      ]

    },
    {
      path: '/RegisterComapny',
      name: 'RegisterComapny',
      meta: {
        requireAuth: true // 配置此条，进入页面前判断是否需要登陆
      },
      component: RegisterComapny
    },

    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/AppendFinshWorkHh',
      name:'AppendFinshWorkHh',
      component: AppendFinshWorkHh
    },

    {
      path: '/PublishProject',
      name:'PublishProject',
      component:  PublishProject,
    },

    {
      path: '/Home',
      name: 'Home',
      meta: {
      requireAuth: true // 配置此条，进入页面前判断是否需要登陆
      },
      component: Home,
      children: [


        {
          path: '/JobApplyManage',
          name: 'JobApplyManage',
          component: JobApplyManage
        },

        {
          path: '/RecruitMember',
          name: 'RecruitMember',
          component:  RecruitMember
        },
        {
          path: '/WProjectSubmit',
          name: 'WProjectSubmit',
          component:  WProjectSubmit
        },
        {
          path: '/CProjectSubmit',
          name: ' CProjectSubmit',
          component:   CProjectSubmit
        },

        {
          path: '/TeamProject',
          name: '  TeamProject',
          component: TeamProject
        },
        {
          path: '/TeamApplyManage',
          name: 'TeamApplyManage',
          component: TeamApplyManage
        },
        {
          path: '/MyTeam',
          name: 'MyTeam',
          component: MyTeam
        },
        {
          path: '/TeamMember',
          name: 'TeamMember',
          component: TeamMember
        },
        {
          path: '/Team',
          name: 'Team',
          component: Team
        },
        {
          path: '/GroupM',
          name: ' GroupM',
          component: GroupM
        },

        {
          path: '/finshStep',
          name: 'finshStep',
          component: finshStep
        },
        {
          path: '/ProjectStep',
          name: 'ProjectStep',
          component:ProjectStep
        },

        {
          path: '/Step',
          name: 'Step',
          component: Step
        },

         {path: '/Group',
          component: Group,
          name: 'Group'
         },
        {
          path: '/GroupMember',
          component:  GroupMember,
          name: ' GroupMember'},
        {
          path: '/GroupAppend',
          component: GroupAppend,
          name: 'GroupAppend'
        },
        {
          path: '/Info',
          component: Info,
          name: 'Info'
        },
        {
          path: '/ApplyingProject',
          name:' ApplyingProject',
          component:   ApplyingProject,
        },

        {
          path: '/Projecting',
          name:' Projecting',
          component:   Projecting,
        },
        {
          path: '/Projected',
          name:'Projected ',
          component:    Projected,
        },


        {
          path: '/ProjectInvate',
          name:' ProjectInvate',
          component:   ProjectInvate,
        },

        {
          path: '/ProjectManage',
          name:'ProjectManage',
          component:  ProjectManage,
        },
        {
          path: '/ProjectManageing',
          name:'ProjectManageing',
          component:  ProjectManageing,
        },
        {
          path: '/ProjectManageed',
          name:'ProjectManageed',
          component:  ProjectManageed,
        },

        {
          path: '/AppendFinshWork',
          name:'AppendFinshWork',
          component:  AppendFinshWork,
        },
        {
          path: '/AppendMember',
          name:'AppendMember',
          component:  AppendMember,
        },

        {
          path: '/PublishProject',
          name:'PublishProject',
          component:  PublishProject,
        },
        {
          path: '/ApplyManage',
          name:'ApplyManage',
          component: ApplyManage,
        }




      ]
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },

    {
      path: 'up',
      name: 'up',
      component: up
    },
  ]
})
